<template>

</template>
<script lang="ts" setup>//可以在里面直接引入组件使用不需要注册
import { computed, reactive, ref } from 'vue';
    let age = ref<number | string>(18)
    console.log(age);
    interface type{
       name:string,
       price:number
    }
    let obj = reactive<type>({
        name:"张三",
        price:10101
    })
    console.log(obj);
    let num = computed<number>(()=>{
        return 100 * 10
    })
    console.log(num);
    function fn(name:string):boolean{
      console.log(name);
      return true
    }
    fn("李四")
</script>